#include"ProcBar.h"



void ProcBar(void)
{
  char bar[101];
  const char* rou = "|/-\\";
  memset(bar, 0, sizeof(bar));
  int i = 0;
  while(i <= 100)
  {
    printf("[%-100s][%d%%][%c]\r", bar, i, rou[i % 4]);
    fflush(stdout);
    usleep(20000);
    bar[i] = '#';
    i++;
  }
  printf("\n");
}
